@using InnoWeb.CEND.UI.MVC.Test.Resources

@model InnoWeb.CEND.UI.MVC.Test.Models.Book

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Language.Global_Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

  <fieldset>
    <legend>@Books.Books_Book</legend>

    @Html.HiddenFor(model => model.Id)

    <div class="editor-label">
      @Html.LabelFor(model => model.Title)
    </div>
    <div class="editor-field">
      @Html.EditorFor(model => model.Title)
      @Html.ValidationMessageFor(model => model.Title)
    </div>

    <div class="editor-label">
      @Html.LabelFor(model => model.Author)
    </div>
    <div class="editor-field">
      @Html.EditorFor(model => model.Author)
      @Html.ValidationMessageFor(model => model.Author)
    </div>

    <p>
      <input type="submit" value="@Language.Global_Save" />
    </p>
  </fieldset>
}

<div>
    @Html.ActionLink(@Language.Global_BackToList, "Index")
</div>
